package cn.java76.springboot.demo1.dao;

import cn.java76.springboot.demo1.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OAdminMapper {
    public int add(OAdmin oAdmin);
    //public List<OAdmin> find();

    public List<OAdmin> search(@Param("page") int page,@Param("limit")int limit,@Param("name")String name,@Param("tele")String tele);

    public int searchTotal(@Param("name")String name,@Param("tele")String tele);

    public int update(OAdmin oAdmin);
    public int del(long id);
    public OAdmin get(long id);
    public OAdmin login(@Param("username") String username, @Param("password") String password);
    public OAdmin findname(@Param("username") String username);
}
